import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';
const attendance: AppRouteModule = {
  path: '/attendance',
  name: 'Attendance',
  component: LAYOUT,
  redirect: '/attendance/attendanceManagement',
  meta: {
    orderNo: 15,
    icon: 'ic:round-person-search',
    title: '考勤管理',
  },
  children: [
    {
      path: 'clock',
      name: 'ClockPage',
      component: () => import('/@/views/backs/attendance/clock/index.vue'),
      meta: {
        title: '打卡',
      },
    },
    {
      path: 'clockList/:id',
      name: 'ClockListPage',
      component: () => import('/@/views/backs/attendance/clock/clockList/index.vue'),
      meta: {
        title: '打卡记录',
        hideMenu: true,
        currentActiveMenu: '/attendance/clock',
      },
    },
    {
      path: 'attendanceManagement',
      name: 'AttendanceManagementPage',
      component: () => import('/@/views/backs/attendance/attendanceManagement/index.vue'),
      meta: {
        title: '统计',
      },
    },
    {
      path: 'rules',
      name: 'RulesPage',
      component: () => import('/@/views/backs/attendance/rules/index.vue'),
      meta: {
        title: '部门规则',
      },
    },
    // {
    //   path: 'projectRules',
    //   name: 'ProjectRulesPage',
    //   component: () => import('/@/views/backs/attendance/project/index.vue'),
    //   meta: {
    //     title: '项目规则',
    //   },
    // },
  ],
};

export default attendance;
